package com.kmzx.one.project.mapper;

import com.github.pagehelper.Page;
import com.kmzx.one.project.entity.UserProfit;
import com.kmzx.one.project.others.dto.UserProfitDetailInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserProfitMapper {
    int insert(UserProfit record);

    List<UserProfit> selectByUserId(@Param("userId") String userId);

    Page<UserProfitDetailInfo> selectUserProfitDetails(@Param("userId") String userId, @Param("kinds") Integer kinds);

    int updateByIdSelective(UserProfit profit);

}
